#pragma once

#include <QtWidgets/QDialog>
#include "ui_OrderTest.h"
#include "TPModel.h"
#include "TPModel.h"
#include "TestOrderOperator.h"

class OrderTest : public QDialog
{
    Q_OBJECT

public:
    OrderTest(QWidget *parent = Q_NULLPTR);
//protected:
//	void timerEvent(QTimerEvent *event);
signals:
	void sigPrice(float pprice);
private slots:
	void onBuyOrder();
	void onInit();
	void onRecvPrice(float lastPrice);
	void setMonitorSymbol();
private:
    Ui::OrderTestClass ui;

	CTPSemaphore m_waitSemaphore;
	CTPModel m_ctpModel;

	// Start a TCP server, and expose DemoService.
	TestOrderOperator order;
	//int m_nTimerID;
};
